package com.mmd.admin.model.pojo.request;


import com.mmd.base.annotation.valid.group.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@ApiModel("代理配置编辑参数")
@Data
public class EnsureMoneySetEditRequest {
    @ApiModelProperty("代理配置id")
    @NotNull(message = "代理配置id不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private Long id;

    @ApiModelProperty(value = "等级名称")
    @NotBlank(message = "等级名称不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    @Length(max = 10, message = "等级名称字数不能超过10", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private String name;

    @ApiModelProperty(value = "保证金额")
    @NotNull(message = "保证金额不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private BigDecimal ensureMoney;

    @ApiModelProperty(value = "权益介绍")
    @NotBlank(message = "权益介绍不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private String content;

    @ApiModelProperty("限制人数")
    @NotNull(message = "限制人数不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private Integer facilitatorNumber;
}
